package com.ogawa.projectcommon.service

import com.ogawa.base.base.BaseResponseBean
import com.ogawa.base.bean.MqttAccountBean
import com.ogawa.projectcommon.bean.UpdateRequestBean
import com.ogawa.projectcommon.bean.UpdateResponseBean
import retrofit2.http.Body
import retrofit2.http.GET
import retrofit2.http.POST
import retrofit2.http.Path
interface ProjectCommonApiService {
    /**
     * 获取MQTT账号密码
     */
    @GET("/api/app/v1/mqttuser/{sn}")
    suspend fun getMqttAccount(@Path("sn") sn: String?): BaseResponseBean<MqttAccountBean>


    /**
     * 检查更新
     */
    @POST("/api/client-upgrade/v1/app/upgrade")
    suspend fun checkUpdate(@Body bean: UpdateRequestBean): BaseResponseBean<UpdateResponseBean>
}